<?php
namespace app\admin\validate;
use think\Validate;

class Board extends Validate
{
    
    protected $rule = [
        'method'      =>  'require|in:online,users,tools,usages,todayusages,mostusages,mostcatusages,mostusagesuser,catrank,toolrank,companyrank,userrank',
    ];

    protected $message = [
        'method.require'      => '方法参数不能为空!',
        'method.in'           => '方法参数错误!',
    ];

    protected $scene = [
        'info'         =>  ['method'],
    ];

}